package com.zhanggm.springcloud.mongo.dao;

import com.zhanggm.springcloud.mongo.model.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface StudentRepository extends MongoRepository<Student,String> {

    List<Student> findByNameLike(String name);

    Page<Student> findByNameLike(String name, Pageable pageable);



}
